home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995 August: Tool Chest / Dev.CD Aug 95 TC / Dev.CD Aug 95 TC.toast / Tool Chest / Development Tools & Languages / Dylan Related / Thomas / MacGambit⁄Thomas / MacGambit⁄Thomas Sources / Reference Notes / Reference Guide.scm < prev    next >
Encoding:
Text File  |  1995-03-15  |  5.1 KB  |  201 lines  |  [TEXT/gamI]

  1. ; ----------------------------------------------------------------------------
  2. ; File:        Reference Guide.scm
  3. ; Description: A small pocket reference guide for MacGambit 2.0.
  4. ; Author:      Mike Brumbelow @ ART
  5. ; Created:     09-Sep-94
  6. ; Language:    Scheme
  7. ; Status:      Experimental (Swim at your own risk)
  8. ;
  9. ;          (c) Copyright 1994, Advanced Robotic Technologies, Inc.
  10. ;              All Rights Reserved.
  11. ;
  12. ; ----------------------------------------------------------------------------
  13.  
  14. (mac#unsigned16->signed16 x)
  15. (mac#event-what ev)
  16. (mac#event-message ev)
  17. (mac#event-when ev)
  18. (mac#event-where ev)
  19. (mac#event-modifiers ev)
  20. (mac#modifiers-button? modifiers)
  21. (mac#modifiers-command? modifiers)
  22. (mac#modifiers-shift? modifiers)
  23. (mac#modifiers-alphalock? modifiers)
  24. (mac#modifiers-option? modifiers)
  25.  
  26. ;; Quickdraw Points
  27. (mac#point v h)
  28. (mac#point-v r)
  29. (mac#point-h r)
  30. (mac#point-v-set! r x)
  31. (mac#point-h-set! r x)
  32.  
  33. ;; Quickdraw Rectangles
  34. (mac#rect top left bottom right)
  35. (mac#rect-top r)
  36. (mac#rect-left r)
  37. (mac#rect-bottom r)
  38. (mac#rect-right r)
  39. (mac#rect-top-set! r x)
  40. (mac#rect-left-set! r x)
  41. (mac#rect-bottom-set! r x)
  42. (mac#rect-right-set! r x)
  43.  
  44.  
  45. ;; Quickdraw Color procedures
  46. (mac#newcwindow bounds title visible procid behind goaway)
  47. (mac#getnewcwindow windowid behind)
  48. (mac#rgbforecolor red green blue)
  49. (mac#rgbbackcolor red green blue)
  50.  
  51. ; Quickdraw Non-Color procedures
  52. (mac#newwindow bounds title visible procid behind goaway)
  53. (mac#getnewwindow windowid behind)
  54.  
  55. (mac#disposewindow w)
  56. (mac#selectwindow w)
  57. (mac#hidewindow w)
  58. (mac#showwindow w)
  59. (mac#frontwindow)
  60. (mac#bringtofront w)
  61. (mac#showhide w flag)
  62. (mac#hilitewindow w flag)
  63. (mac#findwindow pt w-cell)
  64. (mac#trackgoaway w pt)
  65. (mac#dragwindow w pt r)
  66. (mac#invalrect port r)
  67. (mac#beginupdate w)
  68. (mac#endupdate w)
  69. (mac#openport port) 
  70. (mac#initport port)
  71. (mac#closeport port) 
  72. (mac#setport port)
  73. (mac#getport)
  74. (mac#setorigin port h v)
  75. (mac#backpat port pat)
  76.  
  77. (mac#hidecursor)
  78. (mac#showcursor)
  79. (mac#getcursor cursorid)
  80. (mac#getccursor cursorid)
  81. (mac#setcursor cursorhndl)
  82. (mac#setccursor cursorhndl)
  83. (mac#disposeccursor cursorhndl)
  84. (mac#rotatecursor cursorhndl)
  85. (mac#spincursor cursorhndl)
  86.  
  87. (mac#pensize port width height)
  88. (mac#penmode port mode)
  89. (mac#penpat port pat)
  90. (mac#pennormal port)
  91. (mac#moveto port h v)
  92. (mac#move port dh dv)
  93. (mac#lineto port h v)
  94. (mac#line port dh dv)
  95. (mac#textfont port font)
  96. (mac#textface port face)
  97. (mac#textmode port mode)
  98. (mac#textsize port size)
  99. (mac#spaceextra port extra)
  100. (mac#drawchar port ch)
  101. (mac#drawstring port s)
  102. (mac#drawtext port textbuf firstbyte bytecount)
  103. (mac#charwidth port ch)
  104. (mac#stringwidth port s)
  105. (mac#textwidth port textbuf firstbyte bytecount)
  106. (mac#localtoglobal port pt)
  107. (mac#globaltolocal port pt)
  108. (mac#framerect port r)
  109. (mac#paintrect port r)
  110. (mac#eraserect port r)
  111. (mac#invertrect port r)
  112. (mac#fillrect port r pat)
  113. (mac#frameroundrect port r ovwd ovht)
  114. (mac#paintroundrect port r ovwd ovht)
  115. (mac#eraseroundrect port r ovwd ovht)
  116. (mac#invertroundrect port r ovwd ovht)
  117. (mac#fillroundrect port r ovwd ovht pat)
  118. (mac#frameoval port r)
  119. (mac#paintoval port r)
  120. (mac#eraseoval port r)
  121. (mac#invertoval port r)
  122. (mac#filloval port r pat)
  123. (mac#framearc port r startangle arcangle)
  124. (mac#paintarc port r startangle arcangle)
  125. (mac#erasearc port r startangle arcangle)
  126. (mac#invertarc port r startangle arcangle)
  127. (mac#fillarc port r startangle arcangle pat)
  128.  
  129. (mac#openpoly)
  130. (mac#closepoly)
  131. (mac#offsetpoly poly h v)
  132. (mac#killpoly poly)
  133. (mac#framepoly poly)
  134. (mac#paintpoly poly)
  135. (mac#fillpoly poly pat)
  136. (mac#erasepoly poly)
  137. (mac#invertpoly poly)
  138.  
  139. (mac#menuselection selection)(mac#newmenu menuid str)
  140. (mac#getmenu resourceid)
  141. (mac#disposemenu themenu)
  142. (mac#appendmenu themenu str)
  143. (mac#addresmenu themenu thetype)
  144. (mac#insertresmenu themenu thetype afteritem)
  145. (mac#insertmenu themenu beforeid)
  146. (mac#drawmenubar)
  147. (mac#deletemenu menuid)
  148. (mac#clearmenubar)
  149. (mac#getnewmbar menubarid)
  150. (mac#getmenubar)
  151. (mac#setmenubar menulist)
  152. (mac#menuselect p)
  153. (mac#menukey ch)
  154. (mac#hilitemenu menuid)
  155. (mac#disableitem themenu item)
  156. (mac#enableitem themenu item)
  157. (mac#checkitem themenu item)
  158. (mac#getmhandle menuid)
  159.  
  160. (mac#sfgetfile prompt ftypes)
  161. (mac#sfputfile prompt default)
  162. (mac#getmouse pt)
  163. (mac#stilldown)
  164. (mac#button)
  165. (mac#tickcount)
  166. (mac#delay duration)
  167. (mac#sysbeep duration)
  168. (mac#seteventmask themask)
  169. (mac#jimsfunc) <------------ That Crazy Jim Nauer!!!
  170. (mac#sendhle msgID buffer)
  171. (mac#awaithle msgID)
  172. (mac#waitgethle msgID buffer)
  173. (mac#gethledata buffer)
  174. (mac#loadpictfile file)
  175. (mac#drawpict pict port)
  176. (mac#loadrespict resid)
  177. (mac#releaseresource pict)
  178. (mac#setwindowpic port pict)
  179. (mac#bringtofront w)
  180. (mac#peek8 ptr)
  181. (mac#poke8 ptr val) ;Ya gotta ask yourself - do ya feel lucky...punk? Do ya?
  182. (mac#peek16 ptr)
  183. (mac#poke16 ptr val)
  184. (mac#peek32 ptr)
  185. (mac#poke32 ptr val)
  186. (mac_#filemodate file) - returns the creation date in seconds since 1/1/04
  187. (mac#flashmenubar menuid)
  188. (mac#edit filename (line 0) (char 0))
  189. (open-text-window name)
  190. (mac#help name)
  191. (help (name ""))
  192.  
  193. ;; Window manager
  194. mac#window-bindings
  195. mac#window-drag-bounds
  196. (mac#window-bind w wind)
  197. (mac#window-unbind w)
  198. (mac#window-lookup w)
  199. (mac#window-reset w)
  200. (mac#window-handle-event wind-struct event)
  201. (mac#event-handler event)